package com.tanhua.api.mongo;

import com.tanhua.domain.mongo.FollowUser;
import com.tanhua.domain.mongo.Video;
import com.tanhua.domain.vo.PageBeanVo;

import java.util.List;

public interface VideoApi {

    // 分页查询小视频列表数据
    PageBeanVo findVideo(Integer page,Integer pagesize);

    //小视频保存
    void save(Video video);

    //小视频作者的关注
    void saveGz(FollowUser followUser);

    //小视频作者的撤销关注
    void removeGz(Long userId,Long followId);

    //根据用户id分页查看该用户小视频
    PageBeanVo findVideoByUser(Integer page, Integer pagesize, Long uid);

    //根据id查询视屏
    Video findbyUid(String publishId);
    Video findbyUid(Long uid);

    //小视屏关注列表查询
    List<FollowUser> findFollowUserList(Long userId);
    //查询所有该用户的视屏
    List<Video> findVideoList(Long userId);

    Video findbyVid(long l);
}
